<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>删除帖子</title>
    <style>
        .input1 {
            border: 1px solid transparent;
            color: transparent;
            outline: 0;
        }
    </style>
</head>
<body>
<div align="center">
    <form action="${pageContext.request.contextPath}/post.do" method="get">
        <label>
            <input type="text" name="method" class="input1" value="delete">
        </label>
        <label>
            <input type="text" name="id" class="input1" value="${param.id}">
        </label>
        <label>
            <input type="text" name="from" class="input1" value="${param.from}">
        </label>
        <label>
            <input type="text" name="identity" class="input1" value="manager">
        </label><br>
        <label>
            <input type="text" name="tieba" class="input1" value="${param.tiebaName}">
        </label><br>
        <input type="submit" value="确定删除">
        <%
            String id = request.getParameter("id");
            String tieba = request.getParameter("tieba");
            String from = request.getParameter("from");
            if (from!=null&&from.equals("report")) {%>
        <a href="ReportPost.jsp?postId=<%=id%>&tieba=<%=tieba%>">取消</a>
        <% }else {%>
        <a href="ManagerFrame.jsp">取消</a>
        <%}%>
    </form>
</div>
</body>
</html>
